#include "bibit.h"
#include <iostream>

using namespace std;

int Bibit::getHargaBeli() const {
        return hargabeli;
        }

int Bibit::getHargaJual() const {
        return hargajual;
        }

Bibit::~Bibit() {
        cout<<"destruktor bibit"<<endl;
        }

Bibit::Bibit(int ID, int buy, int sell) : Object(5), bibit_id(ID), hargabeli(buy), hargajual(sell) {
        //cout<<"konstruktor bibit dipanggil"<<endl;
        }

int Bibit::getObjectType() const {
        return tipe_object;
        }

Bibit::Bibit(const Bibit& B1) : Object(5), bibit_id(B1.getBibitId()), hargabeli(B1.getHargaBeli()), hargajual(B1.getHargaJual()) {
        cout<<"copy constructor"<<endl;
        }
        
int Bibit::getBibitId() const {
    return bibit_id;
}
